package com.itbaizhan.dao.impl;

import com.itbaizhan.dao.LoginLogDao;
import com.itbaizhan.pojo.LoginLog;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author spf
 * @date 2024/3/6
 * @time 16:06
 */
@Repository
public class LoginLogDaoImpl implements LoginLogDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void insertLog(LoginLog loginLog) {
        mongoTemplate.save(loginLog);
    }
}
